package cn.pconline.officialclub.entity;

import java.util.Date;
import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Mid;

/**
 * 民间车友会入驻官方车友会关系表
 *
 * @author <a href="mailto:chensy0203@163.com">chensy</a>
 */
@Entity(tableName = "oac_club_member")
public class OClubMember extends EntityKit {

    /**
     * 车友会id
     */
    @Id
    @Column(name = "club_id")
    private long clubId;
    /**
     * 官方车友会id
     */
    @Id
    @Column(name = "o_club_id")
    private long oClubId;
    /**
     * 加入时间
     */
    @Column(name = "join_at")
    private Date joinAt;

    public long getClubId() {
        return clubId;
    }

    public void setClubId(long clubId) {
        this.clubId = clubId;
    }

    public long getOClubId() {
        return oClubId;
    }

    public void setOClubId(long oClubId) {
        this.oClubId = oClubId;
    }

    /**
     * 兼容geli
     *
     * @return
     */
    public long getoClubId() {
        return oClubId;
    }

    /**
     * 兼容geli
     *
     * @return
     */
    public void setoClubId(long oClubId) {
        this.oClubId = oClubId;
    }

    public Date getJoinAt() {
        return joinAt;
    }

    public void setJoinAt(Date joinAt) {
        this.joinAt = joinAt;
    }

    public Mid getId() {
        return new Mid(clubId, oClubId);
    }
}
